<template>
  <div class="exception">
    <img src="@/assets/images/404.jpeg" alt="" />
    <el-button @click="goHome" class="btn-home">回首页</el-button>
  </div>
</template>
<script>
export default {
  name: "404",
  methods: {
    goHome() {
      this.$router.push("/");
    }
  }
};
</script>
<style lang="scss">
.exception {
  position: relative;

  img {
    width: 100%;
    height: 100vh;
    position: absolute;
    object-fit: cover;
  }

  .btn-home {
    position: fixed;
    bottom: 100px;
    left: 50%;
    margin-left: -34px;
  }
}
</style>
